import request from '@/utils/request'

// 查询积分记录列表
export function listAppPoints(query) {
    return request({
        url: '/system/AppPoints/list',
        method: 'get',
        params: query
    })
}

// 查询积分记录详细
export function getAppPoints(id) {
    return request({
        url: '/system/AppPoints/' + id,
        method: 'get'
    })
}

// 新增积分记录
export function addAppPoints(data) {
    return request({
        url: '/system/AppPoints',
        method: 'post',
        data: data
    })
}

// 修改积分记录
export function updateAppPoints(data) {
    return request({
        url: '/system/AppPoints',
        method: 'put',
        data: data
    })
}

// 删除积分记录
export function delAppPoints(id) {
    return request({
        url: '/system/AppPoints/' + id,
        method: 'delete'
    })
}
